#ifndef IMAGE_H_
#define IMAGE_H_


#include "render.h"






extern int powerof2(int number);



typedef struct
{
	GLuint texture;
	int w;
	int h;
	float x,y,z;
}SE_image;


SE_image *SE_image_load(char *path);
void SE_image_draw(SE_image *img,float posx,float posy,float posz);

void SE_image_full_draw(SE_image *img,float posx,float posy,float posz,float width_image,float height_image,
	float zoomx,float zoomy,float rotx,float roty,float rotz,float r,float g,float b,float alpha);

void SE_image_segment_draw(SE_image *img,float xtex,float ytex,float wtex,float htex,float posx,float posy,float posz,
	float width_image,float height_image,float zoomx,float zoomy,float rotx,float roty,float rotz,
	float r,float g,float b,float alpha);

void SE_image_clean(SE_image *img);

#endif
